Component({

  properties: {
    show:{
      type: Boolean || String,
      value: false
    },

    data:{
      type: Array
    },

    radioColor: {
      type: String
    },

    addressKey: {
      type: String
    },

    userInfokey: {
      type: String
    },

    phoneKey: {
      type: String
    },

    navrUrl: {
      type: String
    },

    defaultSelected: {
      type: String
    }

  },

  methods: {

    /*选中项*/ 
    _selected(e){
      let item_data = e.currentTarget.dataset.item;
      let params = {
        itemData: item_data
      };

      this.triggerEvent('selected', params);
    },

    /*编辑*/ 
    _compile(e){
      let item_data = e.currentTarget.dataset.item;
      let params = {
        itemData: item_data
      };
      
      this.triggerEvent('compile', params);
    },
    
    /*取消*/ 
    _cancel(){
      this.setData({
        show: false
      });
    }
  }
});